package cn.DesignModel.singleton;

/**
 * @author: lizemin
 * @version: 1.0
 */
public class SingleTon {
    private static final SingleTon instance;
    static{
        instance = new SingleTon();
    }
    //创建私有构造方法，不让任何人对其实例化
    private SingleTon(){}

    //饿汉式
    public static SingleTon getSingleTon(){
        return instance;
    }

}
